package com.shop.shoporder.mapper;

import com.shop.shoporder.entity.Category;
import com.shop.shoporder.entity.SubCategory;
import com.shop.shoporder.entity.WapClassificationGoodsListToData;
import com.shop.shoporder.entity.WapClassificationToData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WapClassificationMapper {

    //查询一级分类
    List<WapClassificationToData> selectOneLevelByPId();


    //根据一级分类ID查询二级
    List<WapClassificationToData> selectTwoLevelByPId();


    //根据二级分类ID查询商品

    List<WapClassificationGoodsListToData> selectGoodsByCfId2(int cfId2);

    //查询一级和二级分类
    List<Category> getCategoryList();

    //根据一级ID查询二级分类
    List<SubCategory> getSubCategoryList(@Param("categoryId") int categoryId);



}
